import { Body, Controller, Delete, Get, Post, Put } from '@nestjs/common'
import { CreateUserDto } from '../dto/user.dto'
import { UserService } from '../service/user.service'

@Controller('/user')
export class UserController {
  constructor(private readonly userService: UserService) {}

  @Get('/findById/:id')
  getHello(): string {
    return this.userService.findById()
  }

  @Post()
  create(@Body() createUserDto: CreateUserDto) {
    return 'This action adds a new user'
  }

  @Delete()
  delete(@Body() createUserDto: CreateUserDto) {
    return 'This action delet a new user'
  }

  @Put()
  update(@Body() createUserDto: CreateUserDto) {
    return 'This action update a new user'
  }
}
